package be.kiojeux.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.datanucleus.api.jpa.annotations.Extension;

import com.google.appengine.api.datastore.Key;

/**
 * @author Renaud DIANA
 *
 */
@Entity
public class UserBean implements Serializable{

	private static final long serialVersionUID = 1L;
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	private Key idMembre;
	@Extension(vendorName="datanucleus", key="gae.parent-pk", value="true")
	private Key idParent;
	private int idAbonnement;
	private String nom;
	private String prenom;
	private String email;
	private String gsm;	
	private Date dateAbonnement;
	private int resteCarteAbonnement;
	private int resteCarteBoisson;
	private String remarques;
	private String actif;
	private String frequentation;
	private long idReservation;
	private String arrivalTime;
		
	/**
	 * default constructor
	 */
	public UserBean() {
		// TODO Auto-generated constructor stub
	}

	public Key getIdMembre() {
		return idMembre;
	}

	public void setIdMembre(Key idMembre) {
		this.idMembre = idMembre;
	}
	
	public Key getIdParent() {
		return idParent;
	}
	
	public void setIdParent(Key idParent) {
		this.idParent = idParent;
	}
	
	public int getIdAbonnement() {
		return idAbonnement;
	}

	public void setIdAbonnement(int idAbonnement) {
		this.idAbonnement = idAbonnement;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getPrenom() {
		return prenom;
	}

	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}
		
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getGsm() {
		return gsm;
	}

	public void setGsm(String gsm) {
		this.gsm = gsm;
	}
				
	public Date getDateAbonnement() {
		return dateAbonnement;
	}

	public void setDateAbonnement(Date dateAbonnement) {
		this.dateAbonnement = dateAbonnement;
	}

	public int getResteCarteAbonnement() {
		return resteCarteAbonnement;
	}

	public void setResteCarteAbonnement(int resteCarteAbonnement) {
		this.resteCarteAbonnement = resteCarteAbonnement;
	}

	public int getResteCarteBoisson() {
		return resteCarteBoisson;
	}

	public void setResteCarteBoisson(int resteCarteBoisson) {
		this.resteCarteBoisson = resteCarteBoisson;
	}

	public String getRemarques() {
		return remarques;
	}

	public void setRemarques(String remarques) {
		this.remarques = remarques;
	}

	public String getActif() {
		return actif;
	}

	public void setActif(String actif) {
		this.actif = actif;
	}

	public String getFrequentation() {
		return frequentation;
	}

	public void setFrequentation(String frequentation) {
		this.frequentation = frequentation;
	}

	public long getIdReservation() {
		return idReservation;
	}

	public void setIdReservation(long idReservation) {
		this.idReservation = idReservation;
	}

	public String getArrivalTime() {
		return arrivalTime;
	}

	public void setArrivalTime(String arrivalTime) {
		this.arrivalTime = arrivalTime;
	}	
}